<?php

namespace App\Listeners\Platform\Setting;

use App\Events\Platform\Setting\OrgDeleting;

class AccessKeyRemove
{

    /**
     * 删除秘钥
     *
     * @param OrgDeleting $event
     * @return void
     */
    public function handle(OrgDeleting $event)
    {
        $event->org->accessKey()->delete();
    }
}
